package com.ruoyi.system.domain;

import java.math.BigDecimal;

import com.ruoyi.system.entity.AbdulBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备服务计费项对象 equipment_service_billing_items
 *
 * @author ruoyi
 * @date 2025-05-09
 */
@ApiModel("设备服务计费项对象")
public class EquipmentServiceBillingItems extends AbdulBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备服务计费项的唯一标识符，自动递增 */
    @ApiModelProperty("主键ID")
    private Long id;

    /** 分类名称，描述设备服务计费项的分类 */
    @ApiModelProperty("分类名称")
    @Excel(name = "分类名称，描述设备服务计费项的分类")
    private String categoryName;

    /** 显示顺序，用于确定计费项在列表中的显示顺序 */
    @ApiModelProperty("显示顺序")
    @Excel(name = "显示顺序，用于确定计费项在列表中的显示顺序")
    private Long displayOrder;

    /** 整单折扣，表示该计费项的整单折扣比例或金额 */
    @ApiModelProperty("整单折扣")
    @Excel(name = "整单折扣，表示该计费项的整单折扣比例或金额")
    private BigDecimal fullOrderDiscount;

    /** 折扣方式，描述该计费项的折扣计算方式，如满减、折扣率等 */
    @ApiModelProperty("折扣方式")
    @Excel(name = "折扣方式，描述该计费项的折扣计算方式，如满减、折扣率等")
    private String discountMethod;

    /** 参与最低消费，布尔类型，表示该计费项是否参与最低消费规则 */
    @ApiModelProperty("参与最低消费")
    @Excel(name = "参与最低消费，布尔类型，表示该计费项是否参与最低消费规则")
    private Integer participatesInMinConsumption;

    /** 参与会员积分，布尔类型，表示该计费项是否参与会员积分规则 */
    @ApiModelProperty("参与会员积分")
    @Excel(name = "参与会员积分，布尔类型，表示该计费项是否参与会员积分规则")
    private Integer participatesInMemberPoints;

    /** 用户小程序可选，布尔类型，表示该计费项是否在用户小程序中可选 */
    @ApiModelProperty("用户小程序可选")
    @Excel(name = "用户小程序可选，布尔类型，表示该计费项是否在用户小程序中可选")
    private Integer availableInMiniProgram;

    /** 参与手动优惠，布尔类型，表示该计费项是否参与手动优惠规则 */
    @ApiModelProperty("参与手动优惠")
    @Excel(name = "参与手动优惠，布尔类型，表示该计费项是否参与手动优惠规则")
    private Integer participatesInManualDiscounts;

    /** 项目数，表示该分类下的设备服务项目数量或该计费项的数量（根据业务需求定义） */
    @ApiModelProperty("项目数")
    @Excel(name = "项目数，表示该分类下的设备服务项目数量或该计费项的数量", readConverterExp = "根=据业务需求定义")
    private Long projectCount;

    /** 手机号 */
    @ApiModelProperty("手机号")
    @Excel(name = "手机号")
    private String phone;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setCategoryName(String categoryName)
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName()
    {
        return categoryName;
    }

    public void setDisplayOrder(Long displayOrder)
    {
        this.displayOrder = displayOrder;
    }

    public Long getDisplayOrder()
    {
        return displayOrder;
    }

    public void setFullOrderDiscount(BigDecimal fullOrderDiscount)
    {
        this.fullOrderDiscount = fullOrderDiscount;
    }

    public BigDecimal getFullOrderDiscount()
    {
        return fullOrderDiscount;
    }

    public void setDiscountMethod(String discountMethod)
    {
        this.discountMethod = discountMethod;
    }

    public String getDiscountMethod()
    {
        return discountMethod;
    }

    public void setParticipatesInMinConsumption(Integer participatesInMinConsumption)
    {
        this.participatesInMinConsumption = participatesInMinConsumption;
    }

    public Integer getParticipatesInMinConsumption()
    {
        return participatesInMinConsumption;
    }

    public void setParticipatesInMemberPoints(Integer participatesInMemberPoints)
    {
        this.participatesInMemberPoints = participatesInMemberPoints;
    }

    public Integer getParticipatesInMemberPoints()
    {
        return participatesInMemberPoints;
    }

    public void setAvailableInMiniProgram(Integer availableInMiniProgram)
    {
        this.availableInMiniProgram = availableInMiniProgram;
    }

    public Integer getAvailableInMiniProgram()
    {
        return availableInMiniProgram;
    }

    public void setParticipatesInManualDiscounts(Integer participatesInManualDiscounts)
    {
        this.participatesInManualDiscounts = participatesInManualDiscounts;
    }

    public Integer getParticipatesInManualDiscounts()
    {
        return participatesInManualDiscounts;
    }

    public void setProjectCount(Long projectCount)
    {
        this.projectCount = projectCount;
    }

    public Long getProjectCount()
    {
        return projectCount;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("categoryName", getCategoryName())
                .append("displayOrder", getDisplayOrder())
                .append("fullOrderDiscount", getFullOrderDiscount())
                .append("discountMethod", getDiscountMethod())
                .append("participatesInMinConsumption", getParticipatesInMinConsumption())
                .append("participatesInMemberPoints", getParticipatesInMemberPoints())
                .append("availableInMiniProgram", getAvailableInMiniProgram())
                .append("participatesInManualDiscounts", getParticipatesInManualDiscounts())
                .append("projectCount", getProjectCount())
                .append("phone", getPhone())
                .toString();
    }
}
